import http from "@/utils/request";

//请求当日销售数据
export const getTodaySales = () => {
  //返回一个promise对象
  return http.get("/dailySales/todaySales");
};

//请求7天内销售数据
export const recentSales = () => {
  //返回一个promise对象
  return http.get("/dailySales/recentSales");
};

export const getAdminName = () => {
  //获取用户名
  return http.get("/admin/getAdminName");
};
